package com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.impl;

import java.util.Date;
import java.util.UUID;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.dao.LearnCommonRemoteDao;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.LearnCommonRemoteService;
import com.fosun.spr.core.base.CoBaseService;
import com.fosun.spr.core.utils.ExtAsserts;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_userSrModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSpModel;
import com.fosun.spr.plugin.learn.webservcie.api.learnCommonRemote.service.model.List_v2_tbshopSrModel;

@Transactional(rollbackFor = { RuntimeException.class, Exception.class })
@Service("learnCommonRemoteService")
public class LearnCommonRemoteServiceImpl extends CoBaseService implements LearnCommonRemoteService {
	@Autowired
	private LearnCommonRemoteDao learnCommonRemoteDao;
	//@Resource
	//private LearnCommonRemoteMapper learnCommonRemoteMapper;
 
	@Override
	public List_v2_userSrModel list_v2_user(List_v2_userSpModel spModel) {
		List_v2_userSrModel srModel = new List_v2_userSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_user(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_userCount(spModel));
		return srModel;
	}	
	@Override
	public List_v2_tbshopSrModel list_v2_tbshop(List_v2_tbshopSpModel spModel) {
		List_v2_tbshopSrModel srModel = new List_v2_tbshopSrModel();
		srModel.setDatas(learnCommonRemoteDao.list_v2_tbshop(spModel));
		srModel.setTotalCount(learnCommonRemoteDao.list_v2_tbshopCount(spModel));
		return srModel;
	}	
	
}
